<template>
<div class="wrapper">
	<swiper :options="swiperOption" >
    <swiper-slide v-for="item of List" v-bind:key="item.id">
    	<img class="one" 
    	v-bind:src="item.imgUrl" >
    </swiper-slide>
    <div class="swiper-pagination"  slot="pagination"></div>
  </swiper>
</div>
</template>

<script>
export default {
  name: 'HomeSwiper',
  props:{
   List : Array
  },
  data () {
  	return {
  		swiperOption: {
  			pagination:'.swiper-pagination',
  			loop:true
  		}
  	}
  }
}

</script>

<style scoped>
	.one{
		width: 100%;
	}
	.wrapper{
		/*宽高百分比*/
		overflow: hidden;
		height: 0;
		width: 100%;
		padding-bottom:30%;
	}
	/*打破scoped*/
	.wrapper >>> .swiper-pagination-bullet-active {
   		background: #fff;
	}
</style>
